import { createRouter, createWebHashHistory } from 'vue-router'
import { constantRoute, anyRoute } from '@/router/routes'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  scrollBehavior: () => ({ left: 0, top: 0 }),
  routes: [...constantRoute, ...anyRoute],
})

export default router
